Optimal. Leaf size=236 \[ \frac {\left (2 c^2 d+2 b^2 f-c (b e+6 a f)\right ) x^2}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\left (12 a^2 c^2 f-b^3 (c e-2 b f)-2 a c \left (2 c^2 d-3 b c e+6 b^2 f\right )\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^3 \left (b^2-4 a c\right )^{3/2}}+\frac {(c e-2 b f) \log \left (a+b x^2+c x^4\right )}{4 c^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 236, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {1677, 1658,
787, 648, 632, 212, 642} \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right ) \left (12 a^2 c^2 f-2 a c \left (6 b^2 f-3 b c e+2 c^2 d\right )-\left (b^3 (c e-2 b f)\right )\right )}{2 c^3 \left (b^2-4 a c\right )^{3/2}}+\frac {x^2 \left (-c (6 a f+b e)+2 b^2 f+2 c^2 d\right )}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (-\left (x^2 \left (-2 a c f+b^2 f-b c e+2 c^2 d\right )\right )-b (a f+c d)+2 a c e\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {(c e-2 b f) \log \left (a+b x^2+c x^4\right )}{4 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rule 642
Rule 648
Rule 787
Rule 1658
Rule 1677
Rubi steps
\begin {align*} \int \frac {x^5 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {x^2 \left (d+e x+f x^2\right )}{\left (a+b x+c x^2\right )^2} \, dx,x,x^2\right )\\ &=\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\text {Subst}\left (\int \frac {x \left (2 \left (2 a e-\frac {b (c d+a f)}{c}\right )-\frac {\left (2 c^2 d-b c e+2 b^2 f-6 a c f\right ) x}{c}\right )}{a+b x+c x^2} \, dx,x,x^2\right )}{2 \left (b^2-4 a c\right )}\\ &=\frac {\left (2 c^2 d+2 b^2 f-c (b e+6 a f)\right ) x^2}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\text {Subst}\left (\int \frac {\frac {a \left (2 c^2 d-b c e+2 b^2 f-6 a c f\right )}{c}+\left (\frac {b \left (2 c^2 d-b c e+2 b^2 f-6 a c f\right )}{c}+2 c \left (2 a e-\frac {b (c d+a f)}{c}\right )\right ) x}{a+b x+c x^2} \, dx,x,x^2\right )}{2 c \left (b^2-4 a c\right )}\\ &=\frac {\left (2 c^2 d+2 b^2 f-c (b e+6 a f)\right ) x^2}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {(c e-2 b f) \text {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^3}+\frac {\left (12 a^2 c^2 f-b^3 (c e-2 b f)-2 a c \left (2 c^2 d-3 b c e+6 b^2 f\right )\right ) \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^3 \left (b^2-4 a c\right )}\\ &=\frac {\left (2 c^2 d+2 b^2 f-c (b e+6 a f)\right ) x^2}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {(c e-2 b f) \log \left (a+b x^2+c x^4\right )}{4 c^3}-\frac {\left (12 a^2 c^2 f-b^3 (c e-2 b f)-2 a c \left (2 c^2 d-3 b c e+6 b^2 f\right )\right ) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{2 c^3 \left (b^2-4 a c\right )}\\ &=\frac {\left (2 c^2 d+2 b^2 f-c (b e+6 a f)\right ) x^2}{2 c^2 \left (b^2-4 a c\right )}+\frac {x^4 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\left (12 a^2 c^2 f-b^3 (c e-2 b f)-2 a c \left (2 c^2 d-3 b c e+6 b^2 f\right )\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^3 \left (b^2-4 a c\right )^{3/2}}+\frac {(c e-2 b f) \log \left (a+b x^2+c x^4\right )}{4 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 236, normalized size = 1.00 \begin {gather*} \frac {2 c f x^2-\frac {2 \left (b^2 \left (c^2 d-b c e+b^2 f\right ) x^2+a^2 c \left (-3 b f+2 c \left (e+f x^2\right )\right )+a \left (b^3 f-2 c^3 d x^2+b c^2 \left (d+3 e x^2\right )-b^2 c \left (e+4 f x^2\right )\right )\right )}{\left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {2 \left (12 a^2 c^2 f+b^3 (-c e+2 b f)-2 a c \left (2 c^2 d-3 b c e+6 b^2 f\right )\right ) \tan ^{-1}\left (\frac {b+2 c x^2}{\sqrt {-b^2+4 a c}}\right )}{\left (-b^2+4 a c\right )^{3/2}}+(c e-2 b f) \log \left (a+b x^2+c x^4\right )}{4 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 309, normalized size = 1.31
method | result | size |
default | \(\frac {f \,x^{2}}{2 c^{2}}-\frac {\frac {-\frac {\left (2 a^{2} c^{2} f -4 a \,b^{2} c f +3 a b \,c^{2} e -2 c^{3} a d +b^{4} f -b^{3} c e +b^{2} c^{2} d \right ) x^{2}}{c \left (4 a c -b^{2}\right )}+\frac {a \left (3 a b c f -2 a \,c^{2} e -b^{3} f +b^{2} c e -b \,c^{2} d \right )}{c \left (4 a c -b^{2}\right )}}{c \,x^{4}+b \,x^{2}+a}+\frac {\frac {\left (8 a b c f -4 a \,c^{2} e -2 b^{3} f +b^{2} c e \right ) \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{2 c}+\frac {2 \left (6 a^{2} c f -2 a \,b^{2} f +a b c e -2 a \,c^{2} d -\frac {\left (8 a b c f -4 a \,c^{2} e -2 b^{3} f +b^{2} c e \right ) b}{2 c}\right ) \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}}{4 a c -b^{2}}}{2 c^{2}}\) | \(309\) |
risch | \(\text {Expression too large to display}\) | \(3609\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 716 vs.
\(2 (224) = 448\).
time = 0.46, size = 1455, normalized size = 6.17 \begin {gather*} \left [\frac {2 \, {\left (b^{4} c^{2} - 8 \, a b^{2} c^{3} + 16 \, a^{2} c^{4}\right )} f x^{6} + 2 \, {\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} f x^{4} - 2 \, {\left ({\left (b^{4} c^{2} - 6 \, a b^{2} c^{3} + 8 \, a^{2} c^{4}\right )} d - {\left (b^{5} c - 7 \, a b^{3} c^{2} + 12 \, a^{2} b c^{3}\right )} e + {\left (b^{6} - 9 \, a b^{4} c + 26 \, a^{2} b^{2} c^{2} - 24 \, a^{3} c^{3}\right )} f\right )} x^{2} + {\left (4 \, a^{2} c^{3} d + {\left (4 \, a c^{4} d + {\left (b^{3} c^{2} - 6 \, a b c^{3}\right )} e - 2 \, {\left (b^{4} c - 6 \, a b^{2} c^{2} + 6 \, a^{2} c^{3}\right )} f\right )} x^{4} + {\left (4 \, a b c^{3} d + {\left (b^{4} c - 6 \, a b^{2} c^{2}\right )} e - 2 \, {\left (b^{5} - 6 \, a b^{3} c + 6 \, a^{2} b c^{2}\right )} f\right )} x^{2} + {\left (a b^{3} c - 6 \, a^{2} b c^{2}\right )} e - 2 \, {\left (a b^{4} - 6 \, a^{2} b^{2} c + 6 \, a^{3} c^{2}\right )} f\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} x^{4} + 2 \, b c x^{2} + b^{2} - 2 \, a c + {\left (2 \, c x^{2} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c x^{4} + b x^{2} + a}\right ) - 2 \, {\left (a b^{3} c^{2} - 4 \, a^{2} b c^{3}\right )} d + 2 \, {\left (a b^{4} c - 6 \, a^{2} b^{2} c^{2} + 8 \, a^{3} c^{3}\right )} e - 2 \, {\left (a b^{5} - 7 \, a^{2} b^{3} c + 12 \, a^{3} b c^{2}\right )} f + {\left ({\left ({\left (b^{4} c^{2} - 8 \, a b^{2} c^{3} + 16 \, a^{2} c^{4}\right )} e - 2 \, {\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} f\right )} x^{4} + {\left ({\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} e - 2 \, {\left (b^{6} - 8 \, a b^{4} c + 16 \, a^{2} b^{2} c^{2}\right )} f\right )} x^{2} + {\left (a b^{4} c - 8 \, a^{2} b^{2} c^{2} + 16 \, a^{3} c^{3}\right )} e - 2 \, {\left (a b^{5} - 8 \, a^{2} b^{3} c + 16 \, a^{3} b c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (a b^{4} c^{3} - 8 \, a^{2} b^{2} c^{4} + 16 \, a^{3} c^{5} + {\left (b^{4} c^{4} - 8 \, a b^{2} c^{5} + 16 \, a^{2} c^{6}\right )} x^{4} + {\left (b^{5} c^{3} - 8 \, a b^{3} c^{4} + 16 \, a^{2} b c^{5}\right )} x^{2}\right )}}, \frac {2 \, {\left (b^{4} c^{2} - 8 \, a b^{2} c^{3} + 16 \, a^{2} c^{4}\right )} f x^{6} + 2 \, {\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} f x^{4} - 2 \, {\left ({\left (b^{4} c^{2} - 6 \, a b^{2} c^{3} + 8 \, a^{2} c^{4}\right )} d - {\left (b^{5} c - 7 \, a b^{3} c^{2} + 12 \, a^{2} b c^{3}\right )} e + {\left (b^{6} - 9 \, a b^{4} c + 26 \, a^{2} b^{2} c^{2} - 24 \, a^{3} c^{3}\right )} f\right )} x^{2} + 2 \, {\left (4 \, a^{2} c^{3} d + {\left (4 \, a c^{4} d + {\left (b^{3} c^{2} - 6 \, a b c^{3}\right )} e - 2 \, {\left (b^{4} c - 6 \, a b^{2} c^{2} + 6 \, a^{2} c^{3}\right )} f\right )} x^{4} + {\left (4 \, a b c^{3} d + {\left (b^{4} c - 6 \, a b^{2} c^{2}\right )} e - 2 \, {\left (b^{5} - 6 \, a b^{3} c + 6 \, a^{2} b c^{2}\right )} f\right )} x^{2} + {\left (a b^{3} c - 6 \, a^{2} b c^{2}\right )} e - 2 \, {\left (a b^{4} - 6 \, a^{2} b^{2} c + 6 \, a^{3} c^{2}\right )} f\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {{\left (2 \, c x^{2} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right ) - 2 \, {\left (a b^{3} c^{2} - 4 \, a^{2} b c^{3}\right )} d + 2 \, {\left (a b^{4} c - 6 \, a^{2} b^{2} c^{2} + 8 \, a^{3} c^{3}\right )} e - 2 \, {\left (a b^{5} - 7 \, a^{2} b^{3} c + 12 \, a^{3} b c^{2}\right )} f + {\left ({\left ({\left (b^{4} c^{2} - 8 \, a b^{2} c^{3} + 16 \, a^{2} c^{4}\right )} e - 2 \, {\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} f\right )} x^{4} + {\left ({\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} e - 2 \, {\left (b^{6} - 8 \, a b^{4} c + 16 \, a^{2} b^{2} c^{2}\right )} f\right )} x^{2} + {\left (a b^{4} c - 8 \, a^{2} b^{2} c^{2} + 16 \, a^{3} c^{3}\right )} e - 2 \, {\left (a b^{5} - 8 \, a^{2} b^{3} c + 16 \, a^{3} b c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (a b^{4} c^{3} - 8 \, a^{2} b^{2} c^{4} + 16 \, a^{3} c^{5} + {\left (b^{4} c^{4} - 8 \, a b^{2} c^{5} + 16 \, a^{2} c^{6}\right )} x^{4} + {\left (b^{5} c^{3} - 8 \, a b^{3} c^{4} + 16 \, a^{2} b c^{5}\right )} x^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.88, size = 279, normalized size = 1.18 \begin {gather*} \frac {f x^{2}}{2 \, c^{2}} - \frac {{\left (4 \, a c^{3} d - 2 \, b^{4} f + 12 \, a b^{2} c f - 12 \, a^{2} c^{2} f + b^{3} c e - 6 \, a b c^{2} e\right )} \arctan \left (\frac {2 \, c x^{2} + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{2 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} \sqrt {-b^{2} + 4 \, a c}} + \frac {2 \, b^{3} f x^{4} - 8 \, a b c f x^{4} - b^{2} c x^{4} e + 4 \, a c^{2} x^{4} e - 2 \, b^{2} c d x^{2} + 4 \, a c^{2} d x^{2} - 4 \, a^{2} c f x^{2} + b^{3} x^{2} e - 2 \, a b c x^{2} e - 2 \, a b c d - 2 \, a^{2} b f + a b^{2} e}{4 \, {\left (c x^{4} + b x^{2} + a\right )} {\left (b^{2} c^{2} - 4 \, a c^{3}\right )}} - \frac {{\left (2 \, b f - c e\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.81, size = 2450, normalized size = 10.38 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________